package com.entity;


import java.util.Date;

public class Comment {
    private Integer id;
    private Integer userId;
    private Integer authorId;
    private Integer blogId;
    private String comment;
    private String userName;


    public Comment() {
    }




    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", userId=" + userId +
                ", authorId=" + authorId +
                ", blogId=" + blogId +
                ", comment='" + comment + '\'' +
                ", userName='" + userName + '\'' +
                '}';
    }

    public Comment(Integer id, Integer userId, Integer authorId, Integer blogId, String comment, String userName) {
        this.id = id;
        this.userId = userId;
        this.authorId = authorId;
        this.blogId = blogId;
        this.comment = comment;
        this.userName = userName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Integer authorId) {
        this.authorId = authorId;
    }

    public Integer getBlogId() {
        return blogId;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
